#ifndef __INPUT_FIELD__
#define __INPUT_FIELD__

#include "Header.h"
#include "cocos-ext.h"
USING_NS_CC_EXT;

class InputField : public CCNode
{
public:
	InputField();
	~InputField();

	CCLabelTTF* label;
	CCEditBox* editBox;
	CCControlButton* clearButton;

	bool init(CCRect frame, char* title, int fontSize, float labelWidth);
private:
	void clearButtonTouched(CCObject *sender, CCControlEvent controlEvent);
};
#endif // !__INPUT_FIELD__
